package com.sys.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sys.common.annotation.Excel;
import com.sys.common.annotation.Excel.ColumnType;
import com.sys.common.core.domain.BaseEntity;
import lombok.Data;

import java.io.Serial;

/**
 * 字典类型表 sys_dict_type
 *
 * @author LGY
 */
@Data
@TableName("sys_dict_type")
public class SysDictType extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 5241333334026240447L;
    /**
     * 字典主键
     */
    @Excel(name = "字典主键", cellType = ColumnType.NUMERIC)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 字典名称
     */
    @Excel(name = "字典名称")
    @TableField(value = "dict_name")
    private String dictName;

    /**
     * 字典类型
     */
    @Excel(name = "字典类型")
    @TableField(value = "dict_type")
    private String dictType;

    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    @TableField(value = "status")
    private String status;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}
